package com.xx.doublexchat.common.chat.service;

import com.xx.doublexchat.common.websocket.domain.vo.resp.WSBaseResponse;

import java.util.List;

/**
 * 消息推送service
 */
public interface IPushService {
    /**
     * 推送消息给指定用户集合
     * @param msg 消息
     * @param uidList 用户集合
     */
    void sendPushMsg(WSBaseResponse<?> msg, List<Long> uidList);

    /**
     * 推送消息给指定用户
     * @param msg 消息
     * @param uid 用户id
     */
    void sendPushMsg(WSBaseResponse<?> msg, Long uid);

    /**
     * 推送消息
     * @param msg
     */
    void sendPushMsg(WSBaseResponse<?> msg);
}
